package cn.tedu.knows.kafka;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.kafka.annotation.EnableKafka;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableKafka
// 下面也加一个注解,启动Spring自带的计时器
//  因为我们计划测试kafka需要计时器所以启动它
@EnableScheduling
public class KnowsKafkaApplication {

    public static void main(String[] args) {
        SpringApplication.run(KnowsKafkaApplication.class, args);
    }

}
